#include<stdio.h>
int main () 
{ 
  int a,b,c,d,e,max;
  scanf("%d %d %d %d %d",&a,&b,&c,&d,&e);
  if (a>b)
  max=a;
  else
  max=b;
  if (max<c)
  max=c;
    if (max<d)
  max=d;
    if (max<e)
  max=e;
  printf("%d",max);
  return 0;
}
